<template>
    <div class="father2">
        爷爷的钱：{{lxyMoney}}，房子：{{ lxyHouse}},车子：{{ lxyCar}},女友：{{ lxyBelle }}
        <br>
        <!-- 孙组件准备传递的参数 -->
        <button @click="GetGrandSonFun(8)">孙子给爷爷赚的利息</button>
    </div>
</template>
<script setup   lang="ts">
import {ref} from 'vue'
defineProps(['lxyMoney','lxyHouse','lxyCar','lxyBelle','GetGrandSonFun']);

</script>
<style scoped>
.father2{
    width: 20vw;
    height: 30vh;
    background-color: rgb(220, 234, 29);
}
</style>
